package com.zhu.salesmanagement.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public class SalesSettings {

    public static final class GoodsInfoColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
        		"/" + SalesProvider.TABLE_GOODS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
        		SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_GOODS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_GOODS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String STOREID = "storeid";
        public static final String TYPEID = "typeid";
        public static final String PLACE = "place";
        public static final String FLOOR = "floor";
        public static final String SIDE = "side";
        public static final String GOODS = "goods";
        public static final String JINGPIN = "jingpin";
        public static final String IMPORTINFO = "import";
    }

    public static final class MyAddStoresColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
        		"/" + SalesProvider.TABLE_MYADDSTORES +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
        		SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_MYADDSTORES +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_MYADDSTORES + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String NAME = "name";
        public static final String ADDRESS = "address";
        public static final String CONTACT = "contact";
        public static final String MOBILE = "mobile";
        public static final String TYPE = "type";
        public static final String PHOTO = "photo";
        public static final String LAT = "lat";
        public static final String LNG = "lng";
    }

    public static final class RemindsColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_REMINDS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_REMINDS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_REMINDS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String EMPLOYEEID = "eid";
        public static final String MESSAGEID = "msgid";
        public static final String TEXT = "text";
        public static final String TIME = "time";
        public static final String TYPE = "type";
        public static final String CUSTOMERID = "cid";
        public static final String STATUS = "status";
        public static final String EVENTID = "eventid";
    }

    public static final class VisitedStoresColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_VISITEDSTORES +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_VISITEDSTORES +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_VISITEDSTORES + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String EMPLOYEEID = "eid";
        public static final String TASKID = "taskid";
        public static final String TASTDATE = "date";
        public static final String AEMPLOYEEID = "aeid";
        public static final String ITEMNO = "itemno";
        public static final String STOREID = "storeid";
        public static final String VISITCATEGOR = "vc";
        public static final String CHECKIN_LAT = "checkinlat";
        public static final String CHECKIN_LNG = "checkinlng";
        public static final String CHECKIN_TIME = "checkintime";
        public static final String CHECKOUT_LAT = "checkoutlat";
        public static final String CHECKOUT_LNG = "checkoutlng";
        public static final String CHECKOUT_TIME = "checkouttime";
        public static final String VISITSTATUS = "visit";
        public static final String CLOSE = "close";

    }

    public static final class CustomerSColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_CUSTOMERS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_CUSTOMERS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_CUSTOMERS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String CUSTOMER_ID = "cid";
        public static final String CUSTOMER_NAME = "cname";
        public static final String CUSTOMER_ADDRESS = "caddr";
        public static final String CUSTOMER_CONTACT = "ccontact";
        public static final String CUSTOMER_TEL = "ctel";
        public static final String CUSTOMER_DEALTID = "cdealtid";
        public static final String CUSTOMER_LEVEL = "cslevel";
        public static final String CUSTOMER_TYPE= "ctype";
        public static final String CUSTOMER_LAT = "clat";
        public static final String CUSTOMER_LNG = "clng";
        public static final String CUSTOMER_STATUS = "cstatus";
        public static final String CUSTOMER_VISITCODE = "vcode";

    }

    public static final class ProductCategoryColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_PRODUCTCATEGORYS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_PRODUCTCATEGORYS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_PRODUCTCATEGORYS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String CUSTOMER_ID = "cid";
        public static final String PRODUCTCATEGORY_NAME = "pcname";
        public static final String PRODUCTCATEGORY_ID = "pcid";
    }

    public static final class ProductsColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_PRODUCTS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_PRODUCTS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_PRODUCTS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String CUSTOMER_ID = "cid";
        public static final String PRODUCTCATEGORY_ID = "pcid";
        public static final String PRODUCT_ID = "pid";
        public static final String PRODUCT_NAME = "pname";
        public static final String PRODUCT_STATUS = "pstatus";
    }

    public static final class ProductShelfsColumns implements BaseColumns
    {
        public static final Uri CONTENT_URI = Uri.parse("content://" + SalesProvider.AUTHORITY +
                "/" + SalesProvider.TABLE_PRODUCTSHELFS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=true");

        public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
                SalesProvider.AUTHORITY + "/" + SalesProvider.TABLE_PRODUCTSHELFS +
                "?" + SalesProvider.PARAMETER_NOTIFY + "=false");

        public static Uri getContentUri(long id, boolean notify) {
            return Uri.parse("content://" + SalesProvider.AUTHORITY +
                    "/" + SalesProvider.TABLE_PRODUCTSHELFS + "/" + id + "?" +
                    SalesProvider.PARAMETER_NOTIFY + "=" + notify);
        }

        public static final String CUSTOMER_ID = "cid";
        public static final String PRODUCTCATEGORY_ID = "pcid";
        public static final String PRODUCTSHELF_COUNT = "scount";
        public static final String PRODUCTSHELF_LAYER = "slayer";
        public static final String PRODUCTSHELF_AREA = "sarea";
        public static final String PRODUCTSHELF_STATUS = "sstatus";
    }
}
